home *** CD-ROM | disk | FTP | other *** search
- Path: news.compuserve.com!newsmaster
- From: <75151.03563@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: RE: Allocate > 64k
- Date: 10 Jan 1996 07:36:13 GMT
- Organization: CompuServe Incorporated
- Message-ID: <4cvq9d$7g9@dub-news-svc-3.compuserve.com>
- NNTP-Posting-Host: dd74-136.compuserve.com
- Content-Type: text/plain
- Content-length: 812
- X-Newsreader: AIR Mosaic (16-bit) version 1.00.198.07
-
-
- jsmithjr@ix.netcom.com(James E. Smith, Jr. ) writes:
- >Have Borlandc. Can I allocate arrays larger than 64K? I have to use 16
- >bit compiler to deliver product for Air Force systems. Or, do I have to
- >build memory manger to handle multiple segments?
-
- I haven't used BC in a while, but in Microsoft this is what you do - I'm sure
- BC has something comparable.
-
- 1) use the _huge modifier for your pointers.
-
- char * _huge hugePtr;
-
- 2) Use halloc( ... )
-
-
- hugePtr= (char * _huge)halloc( ... );
-
- I'm not if these are the exact names of the function and modifier, but hopefully it
- will get you looking in the right direction. Also - check the documentation - I'm
- not sure, but you might have to compile in huge model to get this to work.
-
- Hope this helps.
- Tom Keane
- 75151,03563@compuserve.com
-
-